<%@ page import="activity.Register" %>



<div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'serial', 'error')} ">
	<label for="serial">
		<g:message code="register.serial.label" default="Serial" />
		
	</label>
                <g:select id="serial" name="serial.id" from="${activity.Serial.list()}" optionKey="id" value="${registerInstance?.serial?.id}" class="many-to-one" noSelection="['null': '']" disabled="true" />
</div>

<div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'event', 'error')} required">
	<label for="event">
		<g:message code="register.event.label" default="Event" />
		<span class="required-indicator">*</span>
	</label>
                <g:select id="event" name="event.id" from="${activity.Event.list()}" optionKey="id" required="" value="${registerInstance?.event?.id}" class="many-to-one" disabled="true" />
</div>

<div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'reader', 'error')} required">
    <label for="reader">
        <g:message code="register.reader.label" default="Reader" />
        <span class="required-indicator">*</span>
    </label>
        <g:select id="reader" name="reader.id" from="${activity.Reader.list()}" optionKey="id" required="" value="${registerInstance?.reader?.id}" class="many-to-one" disabled="true"/>
</div>

<div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'goup', 'error')} ">
    <label for="goup">
        <g:message code="register.goup.label" default="Goup" />

    </label>
    <g:textField name="goup" value="${registerInstance?.goup}" size="40" />
</div>

        
        <div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'CID', 'error')} ">
	<label for="CID">
		<g:message code="register.CID.label" default="CID" />
		
	</label>
	<g:textField name="CID" value="${registerInstance?.CID}" size="40" />
</div>

<div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'cancelCode', 'error')} required">
	<label for="cancelCode">
		<g:message code="register.cancelCode.label" default="Cancel Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="cancelCode" required="" value="${registerInstance?.cancelCode}" size="40" />
</div>

<div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'regTime', 'error')} ">
	<label for="regTime">
		<g:message code="register.regTime.label" default="Reg Time" />
		
	</label>
	<g:datePicker name="regTime" precision="day"  value="${registerInstance?.regTime}" default="none" noSelection="['': '']" />

        <div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'status', 'error')} ">
            <label for="status">
                <g:message code="register.status.label" default="status" />
            </label>
                <g:select name="status" from="${registerInstance.constraints.status.inList}" value="${registerInstance?.status}" valueMessagePrefix="register.status" noSelection="['': '']" />
                <//g:select name="status" from="${registerInstance.constraints.status.inList}" value="${registerInstance?.status}" valueMessagePrefix="register.status" noSelection="['': '']" disabled="true" />
        </div>

        <div class="fieldcontain ${hasErrors(bean: registerInstance, field: 'present', 'error')} ">
            <label for="present">
                <g:message code="register.present.label" default="present" />
            </label>
                <g:select name="present" from="${registerInstance.constraints.present.inList}" value="${registerInstance?.present}" valueMessagePrefix="register.present"/>
        </div>        